package cn.ffcs.unm.education.manager.impl;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import cn.ffcs.unm.education.dao.EducationDao;
import cn.ffcs.unm.education.manager.EducationManager;
import cn.ffcs.unm.education.model.Education;
import cn.ffcs.unm.education.model.EducationTraining;
import cn.ffcs.uom.common.vo.PageInfo;

@Service("educationManager")
@Scope("prototype")
public class EducationManagerImpl implements EducationManager {

	@Resource
	private EducationDao educationDao;

	@Override
	public PageInfo queryPageInfoByEducation(
			Education education, int currentPage, int pageSize) {
		return educationDao.queryPageInfoByEducation(
				education, currentPage, pageSize);
	}

	@Override
	public PageInfo queryPageInfoByEducationTraining(
			EducationTraining educationTraining, int currentPage, int pageSize) {
		return educationDao.queryPageInfoByEducationTraining(educationTraining, currentPage, pageSize);
	}

}
